import axios from '../request/axios.js'

export const getPlanList = () => {
  return axios({
    url: "/getPlanList",
    method: "get"
  })
}

export const getPlanInfo = (id) => {
  return axios({
    url: "/getPlanInfo?id="+id,
    method: "get"
  })
}

export const getPlanOfProductList = (data) => {
  return axios({
    url: "/getProductList?page="+data.page+"&page_size="+data.page_size+"&plan_id="+data.plan_id+"&first_category="+data.first_category +"&second_category="+data.second_category,
    method: "get"
  })
}
